﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShopKipsData.aspx.cs" Inherits="ShopKipsData" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>店铺资料</title>
    <script src="../js/extTools.js" type="text/javascript"></script>
    <style>
        .x-grid-row-over .x-grid-cell-inner
        {
            font-weight: bold;
        }
        .x-column-header-inner
        {
            height: 28px;
            background: #E7EBEF url(./images/header.png) repeat-x 0 0;
        }
        .x-grid-row-summary .x-grid-cell-Cost .x-grid-cell-inner
        {
            background-color: #e1e2e4;
        }
        .x-grid-row-summary .x-grid-cell-inner
        {
            font-weight: bold;
            font-size: 14px;
            background-color: #f1f2f4;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ext:ResourceManager ID="ResourceManager1" runat="server" Theme="Crisp" />
        <ext:Viewport ID="Viewport1" runat="server" Layout="FitLayout">
            <Items>
                <ext:Hidden ID="FormatType" runat="server" />
                <ext:GridPanel ID="GridPanel1" runat="server" TitleAlign="Center">
                    <TopBar>
                        <ext:Toolbar ID="Toolbar1" runat="server" Layout="ColumnLayout">
                            <Items>
                                <ext:MultiCombo ID="comShop" runat="server" SelectionMode="All" FieldLabel="店铺" LabelWidth="60"
                                    DisplayField="mrjshopname" ValueField="mrjshopid">
                                    <Store>
                                        <ext:Store ID="Store2" runat="server">
                                            <Model>
                                                <ext:Model ID="Model2" runat="server">
                                                    <Fields>
                                                        <ext:ModelField Name="mrjshopid" />
                                                        <ext:ModelField Name="mrjshopname" />
                                                    </Fields>
                                                </ext:Model>
                                            </Model>
                                        </ext:Store>
                                    </Store>
                                </ext:MultiCombo>
                                <ext:TextField runat="server" ID="txtshop" FieldLabel="店铺名称" EmptyText="输入店铺名称" />
                                <ext:ComboBox runat="server" ID="comState" FieldLabel="数据类型" Width="200">
                                    <Items>
                                        <ext:ListItem Text="进入客流" Value="1" />
                                        <ext:ListItem Text="出来客流" Value="2" />
                                        <ext:ListItem Text="滞留人数" Value="3" />
                                    </Items>
                                    <SelectedItems>
                                        <ext:ListItem Text="进入客流" Value="1" />
                                    </SelectedItems>
                                </ext:ComboBox>
                                <ext:Button ID="Button1" runat="server" Text="查询" OnDirectClick="BtnQureyUser" UI="Info">
                                    <DirectEvents>
                                        <Click>
                                            <EventMask ShowMask="true" Msg="加载中...">
                                            </EventMask>
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                                <ext:Component runat="server" Margin="3" Width="1400" />
                                <ext:DateField runat="server" ID="txtqbdate" LabelWidth="60" FieldLabel="开始时间" />
                                <ext:Label runat="server" Text="-" />
                                <ext:DateField runat="server" ID="txtqedate" LabelWidth="60" FieldLabel="结束时间" />
                                <ext:Button ID="Button3" runat="server" Text="获取数据" OnDirectClick="BtnQureyData"
                                    UI="Info">
                                    <DirectEvents>
                                        <Click Timeout="600000">
                                            <EventMask ShowMask="true" Msg="加载中...">
                                            </EventMask>
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                                <ext:Button ID="Button4" runat="server" Text="删除数据" OnDirectClick="BtnDeleteData"
                                    UI="Info">
                                    <DirectEvents>
                                        <Click>
                                            <EventMask ShowMask="true" Msg="加载中...">
                                            </EventMask>
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                                <ext:Button ID="Button5" runat="server" Text="上传POS数据到每人计" UI="Info">
                                    <DirectEvents>
                                        <Click Timeout="300000" OnEvent="BtnImprtPos">
                                            <EventMask ShowMask="true" Msg="上传数据中...">
                                            </EventMask>
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                            </Items>
                        </ext:Toolbar>
                    </TopBar>
                    <Store>
                        <ext:Store ID="Store1" runat="server" PageSize="1000" OnReadData="RefreshDataSet"
                            OnSubmitData="Store1_Submit">
                            <Model>
                                <ext:Model ID="Model1" runat="server" IDProperty="店铺代码">
                                    <Fields>
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" />
                    </SelectionModel>
                    <Features>
                        <ext:Summary runat="server" />
                    </Features>
                    <BottomBar>
                        <ext:PagingToolbar ID="PagingToolbar1" runat="server">
                            <Items>
                                <ext:Label ID="Label1" runat="server" Text="每页显示:" />
                                <ext:ToolbarSpacer ID="ToolbarSpacer1" runat="server" Width="10" />
                                <ext:ComboBox ID="ComboBox1" runat="server" Width="80">
                                    <Items>
                                        <ext:ListItem Text="1000" />
                                        <ext:ListItem Text="2000" />
                                        <ext:ListItem Text="3000" />
                                    </Items>
                                    <SelectedItems>
                                        <ext:ListItem Value="1000" />
                                    </SelectedItems>
                                    <Listeners>
                                        <Select Handler="#{GridPanel1}.store.pageSize = parseInt(this.getValue(), 10); #{GridPanel1}.store.reload();" />
                                    </Listeners>
                                </ext:ComboBox>
                                <ext:Button ID="Button2" runat="server" Text="导出Excel" Icon="PageExcel">
                                    <Listeners>
                                        <Click Handler="exportData('xls');" />
                                    </Listeners>
                                </ext:Button>
                            </Items>
                            <Plugins>
                                <ext:ProgressBarPager ID="ProgressBarPager1" runat="server" />
                            </Plugins>
                        </ext:PagingToolbar>
                    </BottomBar>
                </ext:GridPanel>
            </Items>
        </ext:Viewport>
    </div>
    </form>
</body>
</html>
